﻿using System.ComponentModel.DataAnnotations;
using YNTK.Dependency;

namespace YNTK.System.Entitys.Dto.Common
{
    /// <summary>
    /// 保存附件信息请求模型
    /// </summary>
    [SuppressSniffer]
    public class FileRequestModel
    {
        /// <summary>
        /// 文件id
        /// </summary>
        [Required(ErrorMessage = "文件id不能为空")]
        public string fileId { get; set; }

        /// <summary>
        /// 文件名称
        /// </summary>
        [Required(ErrorMessage = "文件名称不能为空")]
        public string fileName { get; set; }

        /// <summary>
        /// 存储文件名
        /// </summary>
        [Required(ErrorMessage = "存储文件名不能为空")]
        public string saveFileName { get; set; }

        /// <summary>
        /// 文件后缀
        /// </summary>
        [Required(ErrorMessage = "文件后缀不能为空")]
        public string extension { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public long size { get; set; }

        /// <summary>
        /// 文件大小以B，KB，GB，TB形式显示
        /// </summary>
        public string fileSize { get; set; }

        /// <summary>
        /// 文件存储目录
        /// </summary>
        [Required(ErrorMessage = "文件存储目录不能为空")]
        public string fileDirectory { get; set; }
    }
}
